#!/usr/bin/env node

const log = console.log,
      Num = require('./07-share');

//实例化n1,n2两个对象
const n1 = new Num(),
      n2 = new Num();

//调用两次n1.add()
n1.add();
n1.add();

log('n1 =', n1.getCount());
log('n2 =', n2.getCount());

//调用一次n2.add()
n2.add();

log('n1 =', n1.getCount());
log('n2 =', n2.getCount());
